<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        window.onload = () => {
            ;(async () => {
                let arr = await $.ajax({ url: 'data/1.txt', dataType: 'json' })
                console.log('收到了数组', arr)

                let json = await $.ajax({ url: 'data/2.txt', dataType: 'json' })
                console.log(json)
            })()
        }
    </script>
</head>
<body>
    
</body>
</html>